package com.lxg.learn.dao.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
 * <p>
 * 
 * </p>
 *
 * @author lxg
 * @since 2025-01-24
 */
@Getter
@Setter
@ToString
@TableName("t_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)//依赖数据库的主键自增策略
//    @TableId(type = IdType.ASSIGN_ID)//分布式id
    private Long id;

    private String orderNo;

    private Long userId;

    private BigDecimal amount;
}
